<script>
import { mapState } from "vuex";

export default {
  props: {
    item: {
      props: {
        default: () => ({}),
      },
    },
  },
  computed: {
    ...mapState(["isDev"]),
  },
};
</script>

<template>
  <div v-if="isDev" class="JSONText">
    {{ JSON.stringify(item) }}
  </div>
</template>

<style lang="scss" scoped>
.JSONText {
  width: 400px;
  word-break: break-all;
}
</style>
